All Pools
Queries all pool information associated with a specified factory for a specific chain UID. It includes details about each pool, including the token pairs involved and their respective VLP address.
query All_pools($chainUid: String!, $limit: Int, $offset: Int) {
factory(chain_uid: $chainUid) {
all_pools(limit: $limit, offset: $offset) {
pagination {
total_count
limit
offset
}
pools {
pair {
token_1
token_2
}
vlp
}
}
}
}
Example
curl --request POST \
--header 'content-type: application/json' \
--url 'https://testnet.api.euclidprotocol.com/graphql' \
--data '{"query":"query Factory($chainUid: String!, $limit: Int, $offset: Int) {\n factory(chain_uid: $chainUid) {\n all_pools(limit: $limit, offset: $offset) {\n pools {\n pair {\n token_1\n token_2\n }\n vlp\n }\n pagination {\n total_count\n limit\n offset\n }\n }\n }\n}","variables":{"chainUid":"stargaze","limit":7,"offset":null}}'